package com.light.dp.flink.config.dto;

import com.light.dp.flink.enums.JdbcDriverEnum;
import lombok.Data;

import java.util.List;

@Data
public class SourceJDBCDatabaseConfig extends JDBCDatabaseConfig {
    private List<TargetJDBCDatabaseConfig> targetConfigs;
    private List<TableMapping> tableMappings;

    public SourceJDBCDatabaseConfig(String hostname, int port, String database, String username, String password, List<TargetJDBCDatabaseConfig> targetConfigs, List<TableMapping> tableMappings) {
        super(null, hostname, port, database, username, password);
        this.targetConfigs = targetConfigs;
        this.tableMappings = tableMappings;
    }
}
